﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace word.others
{
    public partial class TimeControl : Form
    {
        int number = 0;
        public TimeControl()
        {
            InitializeComponent();
            lbl_remrerTimer.Text = number.ToString() + "秒";
        }

        private void button1_Click(object sender, EventArgs e)
        {
            timer1.Start();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            timer1.Stop();
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            lbl_remrerTimer.Text = (number++).ToString() + "秒";
        }
    }
}
